package com.atguigu.orderservice.client;

import com.atguigu.commonutils.vo.CourseWebVoForOrder;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("service-edu")
public interface EduClient {
    @ApiOperation(value = "根据课程id查到课程相关信息跨模块调用")
    @GetMapping("/eduService/courseapi/getCourseInForOrder/{courseId}")
    public CourseWebVoForOrder getCourseInForOrder(@PathVariable("courseId") String courseId);
}
